Skip to content

Conversation

@Engerrs
Copy link

@Engerrs Engerrs commented Nov 27, 2025

Hi @janzenisaac , this PR adds new feature. While the original logic can specify condition, but its limited to only 1 value per field, which is limited.
I've added conditional fields fieldset, where you can specify conditions per each field value. The original logic still works, but it marked as deprecated with an according message.
Selection_081

Additionally fixed issue where Multiselect breaks the conditions logic, as there no case for it while removing values.
Fixed the slug creation for Field Name to be as per Core logic, as currently while having additional symbols that are not numeric or letters can break the conditions logic.
Also as an part of this PR, added an logic, where "required" class is added to each required field, as out of the box Discourse doesn't provide one, while its crucial for styling changes for required fields.

This PR already has hidden required PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant